import request from '@/utils/request'

const api_name = '/memberservice/member'
export default {
  //根据手机号发送验证码
  sendCode(phone) {
    return request({
      url: `/api/sms//sendCode/${phone}`,
      method: 'get'
    })
  },

  //用户注册
  userRegister(registForm) {
    return request({
      url: `${api_name}/register`,
      method: 'post',
      data: registForm
    })
  }
}
